import { Module } from '@nestjs/common';
import { TestController } from './test.controller';
import { TestService } from './test.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RoleEntity } from './entity/role.entity';
import { TestRepository } from './TestRepository';

@Module({
  imports: [
    // 注入 entity
    TypeOrmModule.forFeature([RoleEntity])
  ],
  controllers: [TestController],
  providers: [TestService, TestRepository],
})
export class TestModule { }
